<div class="cart_title"><div class="cart_title_content">
<strong>CẬP NHẬT ĐƠN HÀNG </strong> <strong>[ <a href="cart.html">Trở lại giỏ hàng</a> ]</strong>
</div></div>
<div class="cart_item_content"> 
<table cellpadding="4" cellspacing="1" width="100%">
    <tr>
      <td colspan="5" align="left" bgcolor="#FFFFFF"><div style="font-weight:bold;padding:5px 18px;font-size:12px">THÔNG TIN CỦA BẠN</div></td>
    </tr>
    <tr>
      <td colspan="5" align="left" bgcolor="#FFFFFF">{$msg}</td>
      </tr>
    <tr>
          <td width="17%" align="right" valign="top" bgcolor="#FFFFFF"><strong>Tên đầy đủ(*):</strong></td>
          <td width="32%" valign="top" bgcolor="#FFFFFF"><input name="customer_name" type="text" id="customer_name" value="{$customer_name}" size="50"/></td>
          <td width="9%" align="right" valign="top" bgcolor="#FFFFFF"><strong>Email(*):</strong></td>
          <td colspan="2" valign="top" bgcolor="#FFFFFF"><input name="customer_email" type="text" id="customer_email" value="{$customer_email}" size="50"/></td>
      </tr>
        <tr>
          <td align="right" valign="top" bgcolor="#FFFFFF"><strong>Diện thoại liên hệ(*):</strong></td>
          <td valign="top" bgcolor="#FFFFFF"><input name="customer_phone" type="text" id="customer_phone" value="{$customer_phone}" size="50"/></td>
          <td align="right" valign="top" bgcolor="#FFFFFF"><strong>Địa chỉ(*):</strong></td>
          <td colspan="2" valign="top" bgcolor="#FFFFFF"><textarea name="customer_address" style="width:99%" rows="4" id="customer_address">{$customer_address}</textarea></td>
      </tr>
        <tr>
          <td align="right" valign="top" bgcolor="#FFFFFF"><strong>Thông tin lưu ý:</strong></td>
          <td colspan="4" valign="top" bgcolor="#FFFFFF"><textarea name="customer_note"  style="width:99%" rows="4" id="customer_note">{$customer_note}</textarea></td>
      </tr>
        <tr>
            <td colspan="3" align="left" bgcolor="#FFFFFF"><input name="Reset2" type="reset" style="cursor:pointer;"  value="Nhập lại thông tin" onclick="jQuery('#cart_act').val('');"/></td>
          <td width="26%" align="left" bgcolor="#FFFFFF"><input name="Submit2" type="submit" style="cursor:pointer;" value="Cập nhật Đơn hàng" /></td>
          <td width="16%" bgcolor="#FFFFFF">
              <input type="hidden" id="cart_act" name="cart_act" value=""/>
              <input type="submit"  name="submit" value="Gửi đơn hàng & Kết thúc »" onclick="jQuery('#cart_act').val('send_cart');"/></td>
      </tr>
    </table>
</div>

<div class="cart_title"><div class="cart_title_content">
<strong>CHI TIẾT ĐƠN HÀNG [ <a href="cart.html">Trở lại giỏ hàng</a> ]</strong>
</div></div>
<div class="cart_item_content"> 
	<table width="100%" cellspacing="1" cellpadding="5"  bgcolor="#cccccc">
                    <tr>
                      <td colspan="2" align="right" bgcolor="#FFFFFF" style="font-size:12px;padding:10px"><strong>Mã đơn hàng:</strong></td>
                      <td colspan="4" bgcolor="#FFFFFF" style="font-size:12px;padding:10px"><font color="#CC0000"><b>{$cart_id}</b></font></td>
                    </tr>
                    <tr>
                        <td align="center" bgcolor="#F3F3F3"><strong>STT</strong></td>
                        <td align="center" bgcolor="#F3F3F3"><strong>Ảnh</strong></td>
                        <td width="55%" bgcolor="#F3F3F3"><strong>Sản phẩm</strong></td>
                        <td width="11%" align="right" bgcolor="#F3F3F3"><strong>Đơn giá</strong></td>
                        <td width="10%" align="center" bgcolor="#F3F3F3"><strong>Số lượng</strong></td>
                      <td width="12%" align="right" bgcolor="#F3F3F3"><strong>Thành tiền</strong></td>
                    </tr>
                    
                    {assign var="stt" value="0"}
                    {foreach from=$cart_items item=item}
                        {if $item.checked && $item.quantity > 0}
                            {assign var="stt" value=$stt+1}
                            <tr  bgcolor="#Ffffff">
                              <td width="4%" align="center">
                                {$stt}
                              </td>
                                <td width="8%" align="center">
                                    {if $item.img_url} 
                                        <a href="{$item.url}"><img src="{$item.img_url}" width="120" height="120"/></a>
                                    {/if}
                                </td>
                                <td ><a href="{$item.url}" {$onmouseover} >{$item.name}</a></td>
                                <td align="right" nowrap="nowrap" bgcolor="#Ffffff">
                                    <font color="#CC0000"><strong>{$item.price} VNĐ</strong></font>
                                </td>
                                <td align="center" bgcolor="#Ffffff">
                                   {$item.quantity}
                                </td>
                                <td align="right" bgcolor="#Ffffff" nowrap="nowrap"><font color="#CC0000"><b>{$item.row_total}</b></font></td>
                            </tr> 
                    	{/if}
                    {/foreach}
                        <tr>
                          <td colspan="5" align="right" bgcolor="#FFFFFF"><strong>Tổng giá trị đơn hàng:</strong></td>
                          <td align="right" bgcolor="#FFFFFF"><font color="#CC0000"><b>{$price_total}</b></font> <font color="#CC0000"><b>VNĐ</b></font></td>
                        </tr>
                </table>
</div>
	